
<template>
  <div class="home">
    <div class="line"></div>

    <el-carousel height="600px" indicator-position="outside" class="hidden-xs-only">
      <el-carousel-item v-for="item in 3" :key="item"></el-carousel-item>
    </el-carousel>

    <div></div>

    <div id="topheader">今日推荐</div>
    <router-view />
    <div class="module1">
      <h1>我们的服务</h1>
      <p>
        在追求产品不断进步的同时，乘风e租始终致力于为用户提供高品质的服务体验。
        <br />以“行理想，心服务”为口号，
        <br />以“专业、安心、尊享”为理念，立志为用户创造全方位的优质汽车生活。
      </p>
    </div>
    <div id="module2">
      <router-link to="/index/carlist">
        <div class="module-child" id="module-img1">
          <h2>我要租车</h2>
        </div>
      </router-link>
      <a href="#topheader">
        <div class="module-child" id="module-img2">
          <h2>热门推荐</h2>
        </div>
      </a>
      <router-link to="/index/activity">
        <div class="module-child" id="module-img3">
          <h2>活动社区</h2>
        </div>
      </router-link>
      <router-link to="/person/PersonOrder">
        <div class="module-child" id="module-img4">
          <h2>个人中心</h2>
        </div>
      </router-link>
    </div>
    <div id="ft"></div>
  </div>
</template>

<script>
export default {};
</script>
<style >
/* 轮播跑马灯 */
.el-carousel__item {
  background-position: center center;
  background-size: 100% 100%;
}
.el-carousel__item:nth-child(3n) {
  background-image: url("../assets/GYQ/slider1.jpg");
}
.el-carousel__item:nth-child(3n + 1) {
  background-image: url("../assets/GYQ/slider2.jpg");
}
.el-carousel__item:nth-child(3n + 2) {
  background-image: url("../assets/GYQ/slider3.jpg");
}
/* moudle1的样式 */
.module1 {
  width: 100%;
  height: 300px;
  margin-top: 100px;
  text-align: center;
}

.module1 h1 {
  margin-bottom: 50px;
  font-weight: 300;
}

.module1 p {
  font-size: 16px;
  color: rgb(158, 151, 151);
}
#topheader {
  width: 100%;
  height: 80px;
  background-color: rgb(56, 53, 53);
  margin: 50px 0 100px 0;
  font-size: 30px;
  text-align: center;
  color: aliceblue;
  line-height: 80px;
  letter-spacing: 3px;
}
#ft {
  height: 500px;
  width: 100%;
  background-image: url("../assets/GYQ/footer.png");
}
#module2 {
  width: 100%;
  height: 280px;
  margin-bottom: 50px;
}

.module-child {
  width: 20%;
  height: 100%;

  float: left;
  margin: 0 2.5% 0;
  text-align: center;
}

.module-child h2 {
  height: 100%;
  line-height: 250px;
  font-weight: 300;
  background-color: rgba(17, 17, 17, 0.452);
  font-size: 30px;
  color: aliceblue;
  position: relative;
}

.module-child h2:hover {
  background-color: rgba(17, 17, 17, 0.664);
  cursor: pointer;
}

#module-img1 {
  background-image: url(../assets/GYQ/module-img1.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#module-img2 {
  background-image: url(../assets/GYQ/module-img2.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#module-img3 {
  background-image: url(../assets/GYQ/module-img3.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#module-img4 {
  background-image: url(../assets/GYQ/module-img4.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
</style>
